package com.zfk.transaction.controller;

import com.alibaba.fastjson.JSONObject;
import com.zfk.transaction.util.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;
import java.util.Map;

@RestController
@Api("SellController")
public class SellController {


    @PostMapping("/upload")
    @ApiModelProperty("上传商品")
    public Response upload(@RequestBody Map<String,File> files ) throws IOException {

        System.out.println(files);

        return Response.ok();
    }
}
